
<import type='css' file="Css.user-setting" />
<import type='js' file="Js.city" />
<div class="aw-container-wrap">
<div class="aw-container-wrap">
    <div class="container">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="aw-user-setting">
                    <div class="tabbable">
                        <ul class="nav nav-tabs aw-nav-tabs active">
                            <li><a href="{:U('Index/Profile/Security')}">安全设置</a></li>
                            <li><a href="{:U('Index/Profile/upload')}">头像设置</a></li>
                            <li class="active"><a href="">基本资料</a></li>

                            <h2><i class="icon icon-setting"></i> 基本资料</h2>
                        </ul>
                    </div>

                    <div class="tab-content clearfix">
                        <!-- 基本信息 -->
                        <div class="aw-mod">
                            <form id="setting_form" method="post" action="{:U('Index/Profile/update')}">
                            <div class="mod-body">
                                <div class="aw-mod mod-base">
                                    <div class="mod-head">
                                        <h3>基本信息</h3>
                                    </div>
                                        <div class="mod-body">
                                            <dl>
                                                <dt>账号:</dt>
                                                <dd>{$userInfo['username']}</dd>
                                            </dl>
                                            <dl>
                                                <dt>真实姓名:</dt>
                                                <dd><input class="form-control" name="turename" maxlength="128" type="text" value="{$userInfo['turename']}"></dd>
                                            </dl>
                                            <dl>
                                                <dt>性别:</dt>
                                                <dd>
                                                    <label>
                                                        <input name="sex" id="sex" value="男" type="radio" <if condition="$userInfo['sex']==男"> checked="checked" </if> > 男						</label>
                                                    <label>
                                                        <input name="sex" id="sex" value="女" type="radio" <if condition="$userInfo['sex']==女"> checked="checked" </if>> 女						</label>
                                                    <label>
                                                        <input name="sex" id="sex" value="保密" type="radio" <if condition="$userInfo['sex']==保密"> checked="checked" </if> > 保密						</label>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>生日:</dt>
                                                <dd>
                                                    <select name="birthday_y">
                                                        <option value=""></option>
                                                        <for start="1901" end="2017">

                                                            <if condition="$i==$userInfo['birthday']['birthday_y']">
                                                                <option value="{$i}" selected>{$i}</option>
                                                            <else />
                                                                <option value="{$i}">{$i}</option>
                                                            </if>
                                                        </for>

                                                    </select>
                                                    年
                                                    <select name="birthday_m">
                                                        <option value=""></option>
                                                        <for start="1" end="13">

                                                            <if condition="$i==$userInfo['birthday']['birthday_m']">
                                                                <option value="{$i}" selected>{$i}</option>
                                                                <else />
                                                                <option value="{$i}">{$i}</option>
                                                            </if>
                                                        </for>
                                                    </select>
                                                    月
                                                    <select name="birthday_d">
                                                        <option value=""></option>
                                                        <for start="1" end="32">

                                                            <if condition="$i==$userInfo['birthday']['birthday_d']">
                                                                <option value="{$i}" selected>{$i}</option>
                                                                <else />
                                                                <option value="{$i}">{$i}</option>
                                                            </if>
                                                        </for>
                                                    </select>
                                                    日					</dd>
                                            </dl>
                                            <dl>
                                                <dt><label>现居:</label></dt>
                                                <dd>
                                                    <select id="province" name="province" onchange="getcity()">
                                                        <option value="默认选择">选择省份</option>
                                                        <option value="{$userInfo['province']}" selected>{$userInfo['province']}</option>
                                                        <option value="北京市">北京市 </option>
                                                        <option value="广东省">广东省 </option>
                                                        <option value="上海市">上海市 </option>
                                                        <option value="天津市">天津市 </option>
                                                        <option value="重庆市">重庆市 </option>
                                                        <option>辽宁省</option>
                                                        <option>江苏省</option>
                                                        <option>湖北省</option>
                                                        <option>四川省</option>
                                                        <option>陕西省</option>
                                                        <option>河北省</option>
                                                        <option>山西省</option>
                                                        <option>河南省</option>
                                                        <option>吉林省</option>
                                                        <option>黑龙江</option>
                                                        <option>内蒙古</option>
                                                        <option>山东省</option>
                                                        <option>安徽省</option>
                                                        <option>浙江省</option>
                                                        <option>福建省</option>
                                                        <option>湖南省</option>
                                                        <option>广西省</option>
                                                        <option>江西省</option>
                                                        <option>贵州省</option>
                                                        <option>云南省</option>
                                                        <option>西藏</option>
                                                        <option>海南省</option>
                                                        <option>甘肃省</option>
                                                        <option>宁夏</option>
                                                        <option>青海省</option>
                                                        <option>新疆</option>
                                                        <option>香港</option>
                                                        <option>澳门</option>
                                                        <option>台湾</option>
                                                        <option>海外</option>
                                                        <option>其他</option>
                                                    </select>
                                                    省
                                                    <select id="city" name="city">
                                                        <option value="默认选择">市</option>
                                                        <option value="{$userInfo['city']}" selected>{$userInfo['city']}</option>
                                                    </select>
                                                    市
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt><label>职业:</label></dt>
                                                <dd>
                                                    <select name="job">
                                                        <option value="0">--</option>
                                                        <foreach name="jobsInfo" item="v">
                                                            <if condition="$v['name']==$userInfo['job']">
                                                                <option value="{$v['name']}" selected>{$v['name']}</option>
                                                            <else />
                                                                <option value="{$v['name']}">{$v['name']}</option>
                                                            </if>

                                                        </foreach>

                                                    </select>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt><label>介绍:</label></dt>
                                                <dd class="introduce"><input class="form-control" name="introduce" maxlength="128" type="text" value="{$userInfo['introduce']}"></dd>
                                            </dl>

                                            <!-- 上传头像 -->

                                            <!-- end 上传头像 -->
                                        </div>
                                    </div>
                                <!-- end 基本信息 -->

                                <!-- 联系方式 -->
                                <div class="aw-mod mod-contact">
                                    <div class="mod-head">
                                        <h3>联系方式</h3>
                                    </div>
                                    <div class="mod-body clearfix">
                                        <ul>
                                            <li>
                                                <label for="input-qq">QQ:</label>
                                                <input class="form-control" type="text" id="input-qq" name="qq" value="{$userInfo['qq']}">
                                            </li>
                                            <li>
                                                <label for="input-mobile">手机号码:</label>
                                                <input class="form-control" type="text" id="input-mobile" name="phone" value="{$userInfo['phone']}">
                                            </li>
                                            <li>
                                                <label for="input-common-email">常用邮箱:</label>
                                                <input class="form-control" type="text" id="input-common-email" name="mail" value="{$userInfo['mail']}">
                                            </li>
                                            <li>
                                                <label for="input-homepage">网站:</label>
                                                <input class="form-control" type="text" id="input-homepage" name="site" value="{$userInfo['site']}">
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <!-- end 联系方式 -->
                            </div>
                            <div class="mod-footer clearfix">
                                <!--<a href="javascript:;" class="btn btn-large btn-success pull-right" onclick="AWS.ajax_post($(&#39;#setting_form&#39;));">保存</a>-->
                                <button type="submit" class="btn btn-large btn-success pull-right">保存</button>
                            </div>
                            </form>
                        </div>


                        <script type="text/javascript" src="./images/setting.js"></script>

                    </div>
                </div>
            </div>
        </div>
    </div>